package com.hk.userservice.service;


import com.hk.model.Admin;
import com.hk.model.vo.LoginAdmin;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @Author: zhe
 * @Date: 2021/6/5 18:22
 * @Statement: 管理员接口
 */
public interface AdminService extends BaseService<Admin> {

    Admin findByEmailAndPassword(Admin admin);

    int findByEmail(String email);

    LoginAdmin queryByEmail(String email);

    int updatePassWord(Admin admin);

    String toLogin(LoginAdmin loginAdmin, HttpServletRequest request) throws IOException;

    boolean permissionToCheck(String uri, Integer id);
}
